package cn.blb.service.base.handler;

import cn.blb.common.result.ResultCode;
import lombok.Data;

@Data
public class BLBException extends RuntimeException {

    private Integer code;

    public BLBException(String message,Integer code) {
        super(message);
        this.code = code;
    }

    public BLBException(ResultCode resultCode) {
        super(resultCode.getMessage());
        this.code = resultCode.getCode();
    }
}
